{% extends "base.html"%}

{% block content %}
	<header><h3 class="tabs_involved">Relatório Resumo</h3> 
		<ul class="tabs"> 
			<li><a href="#tab1">Mesas</a></li> 
   			<li><a href="#tab2">Pedidos</a></li> 
    		<li><a href="#tab3">Pagamento</a></li> 
		</ul> 
		</header>  
		<div class="tab_container"> 
			<div id="tab1" class="tab_content"> 
					<table class="tablesorter" cellspacing="0"> 
					{% if mesa_list %}
							{% for object in mesa_list %}
								{% if forloop.first %} 
				    				<thead> 
					                	<tr>
					                    	{% for label, value in object.field_list %}
					                        	<th align="center">{{label}}</th>
					                    	{% endfor %}
					            		</tr>
				            		</thead> 
			            		{% endif %}
								<tbody> 
									<tr>
										{% for label, value in object.field_list %}
				                    		<td><a href="/{{link}}/detail/{{object.id}}">{{ value }}</a>
				                		{% endfor %}
									</tr>   
								</tbody> 
							{% endfor %}
						{% else %}
						<tbody>
							<tr>
								<td align="center">Nada a ser listado</td>
							</tr>
						</tbody>
						{% endif %}
					</table> 
				</div><!-- end of #tab2 --> 
				<div id="tab2" class="tab_content"> 
					<table class="tablesorter" cellspacing="0"> 
					{% if pedido_list %}
							{% for object in pedido_list %}
								{% if forloop.first %} 
				    				<thead> 
					                	<tr>
					                    	{% for label, value in object.field_list %}
					                        	<th align="center">{{label}}</th>
					                    	{% endfor %}
					            		</tr>
				            		</thead> 
			            		{% endif %}
								<tbody> 
									<tr>
										{% for label, value in object.field_list %}
				                    		<td><a href="/{{link}}/detail/{{object.id}}">{{ value }}</a>
				                		{% endfor %}
									</tr>   
								</tbody> 
							{% endfor %}
							{% else %}
						<tbody>
							<tr>
								<td align="center">Nada a ser listado</td>
							</tr>
						</tbody>
						{% endif %}
					</table> 
				</div><!-- end of #tab2 --> 
				<div id="tab3" class="tab_content"> 
					<table class="tablesorter" cellspacing="0"> 
					{% if pagamento_list %}
							{% for object in pagamento_list %}
								{% if forloop.first %} 
				    				<thead> 
					                	<tr>
					                    	{% for label, value in object.field_list %}
					                        	<th align="center">{{label}}</th>
					                    	{% endfor %}
					            		</tr>
				            		</thead> 
			            		{% endif %}
								<tbody> 
									<tr>
										{% for label, value in object.field_list %}
				                    		<td><a href="/{{link}}/detail/{{object.id}}">{{ value }}</a>
				                		{% endfor %}
									</tr>   
								</tbody> 
							{% endfor %}
							{% else %}
						<tbody>
							<tr>
								<td align="center">Nada a ser listado</td>
							</tr>
						</tbody>
						{% endif %}
					</table> 
				</div><!-- end of #tab3 --> 
		</div><!-- end of .tab_container --> 
{% endblock %}